Skip to content

GA-9681: Update tooling and geoh5py dependency - #178

Merged
sebhmg merged 14 commits into
release/ga-4.9from
GA-9681
Nov 18, 2026
Merged

sebhmg merged 14 commits into
release/ga-4.9from
GA-9681

Conversation

@sebhmg

@sebhmg sebhmg commented Nov 18, 2026 •

Copy link
Copy Markdown

GA-9681 - update Python distribution for 4.9 beta

Summary

  • Refresh pre-commit hooks and pin/update GitHub Actions.
  • Pin Black/Flake8/Ruff and mypy (1.15.0); align the Rattler host build requirement with setuptools-scm.
  • Resolve geoh5py from MiraGeoscience/geoh5py GA-9681 and update the Rattler runtime minimum to the branch's resolved version.

Validation

  • uv build succeeded.
  • tests/meta/test_meta_sim.py and tests/meta/test_multiprocessing_sim.py: 17 passed.
  • pip-audit: no known vulnerabilities in audited dependencies (private Git dependencies are not present on PyPI).
  • prek validate-config and pinact run --verify passed.

sebhmg and others added 5 commits November 17, 2026 12:04
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
GitHub Actions checkout v7 refuses fork pull-request checkouts in
pull_request_target workflows unless unsafe checkout is explicitly enabled.
Keep the latest pinned v4 release for the review-only workflow.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 18, 2026 02:15
@github-actions github-actions Bot changed the title [GA-9681] Update tooling and geoh5py dependency GA-9681: Update tooling and geoh5py dependency Nov 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The direct Git dependency produces distribution metadata rejected by PyPI and TestPyPI, causing both deployment workflows’ publication steps to fail even if the build succeeds.

1 open issue
What changed in this PR

This PR prepares SimPEG’s Python distribution for the 4.9 beta by refreshing development and CI tooling and updating the geoh5py dependency.

Changes:

  • Update and pin formatting, linting, type-checking tools, and GitHub Actions.
  • Resolve geoh5py from the GA-9681 branch and align Rattler runtime and build requirements.
  • Apply small formatting, docstring, and tutorial cleanups.
File Description
tutorials/​08-tdem/​plot_inv_3_tem_3d.py Remove imports and rename an unused loop variable.
simpeg/​utils/​pgi_utils.py Reformat the KMeans call.
simpeg/​maps.py Add summaries to two docstrings.
simpeg/​directives/​_directives.py Standardize docstring section headings.
recipe.yaml Update geoh5py and setuptools-scm requirements.
pyproject.toml Change the geoh5py source and update development tool pins.
environment.yml Align tool versions and add mypy.
.pre-commit-config.yaml Update Black, Flake8, and Ruff hooks.
.github/​workflows/​zizmor-security-upstream.yml Update checkout and Python setup actions.
.github/​workflows/​wip-status.yml Update the reusable WIP-status workflow.
.github/​workflows/​test-latest.yml Pin checkout and cache actions to commit hashes.
.github/​workflows/​security_scan.yml Update reusable security-analysis workflows.
.github/​workflows/​python_deploy_prod.yml Update production release and publishing actions.
.github/​workflows/​python_deploy_dev.yml Update development build and publishing actions.
.github/​workflows/​pull_request.yml Update checkout, Python setup, and Black review actions.
.github/​workflows/​pr_jira_actions.yml Update the reusable PR-to-Jira workflow.
.github/​workflows/​issue_to_jira.yml Update the reusable issue-to-Jira workflow.
.github/​workflows/​dependabot-auto-merge.yml Update the reusable Dependabot auto-merge workflow.

Review effort: Balanced

Comment thread pyproject.toml Resolved
sebhmg and others added 8 commits November 17, 2026 21:32
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Declare distributed with the Dask extra and CI environment, and import the available Dask simulation exports.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sebhmg
sebhmg changed the base branch from develop to release/ga-4.9 November 18, 2026 15:19
@sebhmg
sebhmg requested review from domfournier and a balanced review from Copilot November 18, 2026 15:20
Comment thread simpeg/meta/__init__.py
Comment on lines 80 to 81
DaskMetaSimulation,
DaskMetaSimulationExplicit,
DaskSumMetaSimulation,

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@domfournier, can you confirm this analysis (by Copilot) is correct?

DaskMetaSimulationExplicit is not defined in dask_sim.py. Importing it raised ImportError, triggering the fallback in simpeg\meta_init_.py and disabling the real Dask classes—even when Dask was installed.

Only the stale import was removed, not an implementation. The six focused Dask tests now pass.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The removed side-effect import causes the standalone TDEM tutorial to fail during inversion initialization, while the geoh5py requirement conflicts with the workflow’s Python 3.15 default and blocks test environment creation.

2 open issues
1 resolved since last review

Review effort: Balanced

Comment thread .ci/environment_test.yml
- twine
- python-build
- pip:
- "geoh5py>=0.14.0b1,<0.15.0"
Comment thread tutorials/08-tdem/plot_inv_3_tem_3d.py Resolved
domfournier
domfournier previously approved these changes Nov 18, 2026
Import dask from SimPEG for TDEM sensitivity methods.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@sebhmg
sebhmg merged commit d25b44e into release/ga-4.9 Nov 18, 2026
15 checks passed
@sebhmg
sebhmg deleted the GA-9681 branch November 18, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants